package com.lzx.tease.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lzx
 * @since 2022-10-03
 */
@Getter
@Setter
@ApiModel(value = "User对象", description = "用户实体类")
public class User {
    @ApiModelProperty("编号")
    private Long id;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("出生年月日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @ApiModelProperty("头像地址")
    private String avatar;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("用户积分")
    private Integer integral;

    @ApiModelProperty("简介")
    private String introduction;

    @ApiModelProperty("粉丝数")
    private Integer fansCount;

    @ApiModelProperty("关注数")
    private Integer attentionCount;

    @ApiModelProperty("回答数")
    private Integer replyCount;

    @ApiModelProperty("账号状态(0正常 1停用)")
    private String status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("ip")
    private String ip;

    @ApiModelProperty("地址")
    private String address;
}
